import numpy as np
import matplotlib.pyplot as plt

w = lambda x: x**2
winv = lambda x: np.sqrt(x)
x = np.linspace(0,2,100)

plt.plot(x, w(x),'b',x,winv(x),'r',x,x,'g-.')
plt.show()